Skip to main content

TRREST_CNFILE

Trigger REST and Connector FILE samples

Sr. NoService NameDescriptionDetails
1.readCsvRead a CSV file, move it to a different folder, rename it and return its data as is.
2.readXmlRead a XML file, move it to a different folder and return its data as is.
3.readJsonRead a JSON file and return its data as is.
4.readTxtRead a TEXT file and return its data as is.
5.removeFileRemove a file.
6.writeCsvCreate a CSV file and write payload content in it.
name,id,city,country
John,111,Pune,India
7.appendToExistingCsvAppend payload content to already created CSV file.
name,id,city,country
Will,112,Pune,India
8.writeXmlCreate a XML file and write payload content in it.
<ArrayList>
<item>
<name>John</name>
<id>111</id>
<city>Pune</city>
<country>India</country>
</item>
</ArrayList>
9.writeJsonCreate a JSON file and write payload content in it.
{
"name": "John",
"id": 111,
"city": "Pune",
"country": "India"
}
10.appendToExistingJsonAppend payload content to already created JSON file.
{
"name": "Will",
"id": 112,
"city": "Pune",
"country": "India"
}
11.writeTxtCreate a TEXT file and write payload content in it.
ST*       850*0001
BEG*00*SA*000000006637770**20230818*0001307878